package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 阶段时间表
 * </p>
 *
 * @author hpiggy
 * @since 2024-09-04
 */
@Data
@TableName("enroll_stage_time")
@ApiModel(value = "EnrollStageTime对象", description = "阶段时间表")
public class EnrollStageTime implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("阶段id")
    private Long stageTypeId;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("起始日期")
    private LocalDate startDate;

    @ApiModelProperty("截止日期")
    private LocalDate endDate;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("创建人id")
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @ApiModelProperty("0没有周期，1：有周期")
    @TableField(exist = false)
    Integer type;

    @TableField(exist = false)
    List<EnrollStagePeriod> enrollStagePeriodList;

    @ApiModelProperty("阶段名称")
    @TableField(exist = false)
    String enrollStageName;

    @ApiModelProperty("学期中文名")
    @TableField(exist = false)
    String quarterName;

    @ApiModelProperty("周期")
    @TableField(exist = false)
    String num;

    @ApiModelProperty("周期")
    @TableField(exist = false)
    String isNow;

}
